PaymentPlugins\WooCommerce\PPCP\ContextHandler S

Total Complexity 37
Dependencies 3
Dependents 20
Total lines 140
Lines of code 90
Logical lines of code 44
Comment lines 6
Methods 18
Properties 1

Methods 18

Method Rating Maintainability Complexity Lines of code
initialize()
A
51 13 25
is_checkout_shortcode()
S
70 3 6
is_checkout_block()
S
70 3 6
__construct()
S
70 2 6
is_frontend()
S
78 2 3
has_context()
S
70 2 6
set_context()
S
81 1 3
get_context()
S
82 1 3
is_context()
S
76 1 4
is_checkout()
S
80 1 3
is_add_payment_method()
S
80 1 3
is_cart()
S
80 1 3
is_product()
S
80 1 3
is_order_pay()
S
80 1 3
is_order_received()
S
80 1 3
is_shop()
S
80 1 3
get_order_from_query()
S
75 1 4
get_product_id()
S
81 1 3